package com.sang.serviceImpl;


import com.sang.mapper.OrderMapper;
import com.sang.pojo.Order;
import com.sang.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public List<Order> findOrderByUserId(String username) {
        //在根据用户的信息来查询用户的订单信息
        return orderMapper.findOrderByUserId(username);
    }
}
